import { IsEmail, Length } from 'class-validator';

export class VerifyCodeDto {
  @IsEmail()
  @Length(4, 20, {
    message: JSON.stringify({ message: '邮箱长度必须是4-20', code: 2000 }),
  })
  readonly email: string;
}
